#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
using namespace std;

//class A
//{
//public:
//	A(int a=7)
//	{
//		_a = a;
//	}
//private:
//	int _a;
//};

//template<class T1,class T2>
//T1 Add(T1 x, T2 y)
//{
//	return x + y;
//}
template<class T1, class T2>
class A
{
public:
	A(T1 x, T2 y)
	{
		_a = x;
		_b = y;
	}
	void Print()
	{
		cout << _a << _b << endl;
	}
private:
	T1 _a;
	T2 _b;
};


int main()
{
	//cout << Add(5, 8.0) << endl;
	A<int,int> s1(3, 4);
	A<double, int> s2(7.15, 4);
	s1.Print();
	s2.Print();

	return 0;
}